body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.header {
    background-color: #4CAF50;
    color: white;
    padding: 15px;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.container {
    display: flex;
    flex: 1;
}

.sidebar {
    width: 250px;
    background-color: #f1f1f1;
    padding: 15px;
    border-right: 1px solid #ddd;
    overflow-y: auto;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 15px;
    height: 95%;
}

.room-controls {
    margin-bottom: 20px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.user-list {
    margin-top: 20px;
}

.user-list h3 {
    margin-top: 0;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

.user-list ul {
    list-style-type: none;
    padding: 0;
}

.user-list li {
    padding: 8px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-list li button {
    padding: 4px 8px;
    font-size: 12px;
}

.messages {
    flex: 1;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 15px;
    background-color: #fff;
    border-radius: 5px;
}

.message {
    margin-bottom: 10px;
    padding: 8px;
    border-radius: 4px;
    background-color: #f1f1f1;
}

.message .sender {
    font-weight: bold;
    color: #4CAF50;
}

.message-input {
    display: flex;
}

.message-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
}

.message-input button {
    padding: 10px 15px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

button {
    padding: 8px 12px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 5px;
}

button:hover {
    background-color: #45a049;
}

button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

input {
    padding: 8px;
    margin: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.voice-controls {
    display: flex;
    align-items: center;
}

.voice-btn {
    background-color: #f44336;
    margin-left: 10px;
}

.voice-btn.active {
    background-color: #4CAF50;
}

audio {
    width: 100%;
    margin-top: 10px;
}
